//
//  Encryption.h
//  Pthread
//
//  Created by Yanyan Jiang on 2025/3/7.
//  Copyright © 2025 Yanyan Jiang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


@interface NSData (Encryption)



// AES-256-CBC 加密
- (NSData *)aes256EncryptWithKey:(NSData *)key iv:(NSData *)iv;

// AES-256-CBC 解密
- (NSData *)aes256DecryptWithKey:(NSData *)key iv:(NSData *)iv;

@end

NS_ASSUME_NONNULL_END
